package com.eedi.framework.template.convert;

import com.eedi.framework.template.controller.sys.vo.permission.SysTemplateRoleMenuResp;
import com.eedi.framework.template.dal.dataobject.SysTemplateRoleMenuDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.Collection;
import java.util.List;

@Mapper
public interface SysTemplateRoleMenuConvert {

    SysTemplateRoleMenuConvert INSTANCE = Mappers.getMapper(SysTemplateRoleMenuConvert.class);

    List<SysTemplateRoleMenuResp> convert(Collection<SysTemplateRoleMenuDO> sysTemplateRoleMenus);

    SysTemplateRoleMenuResp convert(SysTemplateRoleMenuDO sysTemplateRoleMenuDO);
}
